<template>
  <div class="main-layout">
    <Top />
    <slot></slot>
  </div>
</template>

<script setup>
import Top from './top.vue';
import { inject, provide } from 'vue';

// 从父组件获取 supermapRef
const supermapRef = inject('supermapRef');

// 继续向下传递给 Top 组件
provide('supermapRef', supermapRef);
</script>

<style lang="scss" scoped>
.main-layout {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}
</style> 